import request from '../../../utils/request'
import type { CategoryResponseData } from './type'
enum API {
  //获取已有品牌接口
  C1_URL = '/admin/product/getCategory1',
  //添加品牌
  C2_URL = '/admin/product/getCategory2',
  //修改已有品牌
  C3_URL = '/admin/product/getCategory3',
  //删除已有品牌
  DELETE_URL = '/admin/product/baseTrademark/remove/',
}

// 获取品牌
export const reqC1 = () => request.get<any, CategoryResponseData>(API.C1_URL)

// 添加品牌
export const reqC2 = (data: number | string) =>
  request.get<any, CategoryResponseData>(API.C2_URL + `/${data}`)

// 删除品牌
export const reqC3 = (data: number | string) =>
  request.get<any, CategoryResponseData>(API.C3_URL + `/${data}`)
